import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/excel/template/` + url, ...arg)
export default {
	pageList(data) {
		return request('pageList', data, 'post')
	},
	getTemplateListByType(type) {
		return request('getTemplateListByType/' + type, null, 'get')
	},
	importExcel(data) {
		return request('upload', data, 'post')
	},
	del(id) {
		return request('del/' + id, null, 'get')
	}
}
